﻿using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;

namespace Ooaavee.Data
{
    /// <summary>
    /// Defines the source of a relational model.
    /// </summary>
    [DataContract]
    [DebuggerDisplay("{DebuggerDisplay,nq}")]
    public sealed class RelationalModelSource
    {
        /// <summary>
        /// Gets or sets the OleDb connection string used to open a database.
        /// </summary>
        [DataMember]
        public string OleDbConnectionString { set; get; }

        #region Debugger
        [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "See DebuggerDisplayAttribute marked on this class.")]
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private string DebuggerDisplay { get { return OleDbConnectionString; } }
        #endregion
    }
}
